#include "win32EventListener.h"

using namespace neiderra::gui;

win32EventListener::win32EventListener(Core* core): EventListener(core) 
{
}
	
int win32EventListener::listen()
{
	if(PeekMessage(&msg_,NULL,0,0,PM_NOREMOVE)) 
	{
		if(!GetMessage(&msg_,NULL,0,0)) return (int)msg_.wParam;
		TranslateMessage(&msg_);
		DispatchMessage(&msg_);
	}

	return 0;
}
	
win32EventListener::~win32EventListener()
{
}
